package defectsim.material;

import javax.vecmath.Vector3d;

public class SlipSystem {
	private Vector3d plane;
	private Vector3d direction;
	private boolean active;
	// Glide angle is the angle between x axis and slip direction
	private double glideAngle;
	
	public SlipSystem(){
		plane = new Vector3d();
		direction = new Vector3d();
		active = false;
	}
	
	public SlipSystem(Vector3d plane, Vector3d direction, boolean active, double glideAngle){
		this.plane = plane;
		this.direction = direction;
		this.active = active;
		this.glideAngle = glideAngle;
	}
	
	public double getGlideAngle() {
		return glideAngle;
	}

	public void setGlideAngle(double glideAngle) {
		this.glideAngle = glideAngle;
	}

	public Vector3d getPlane() {
		return plane;
	}
	
	public void setPlane(Vector3d plane) {
		this.plane = plane;
	}
	
	public Vector3d getDirection() {
		return direction;
	}
	
	public void setDirection(Vector3d direction) {
		this.direction = direction;
	}
	
	public boolean isActive() {
		return active;
	}
	
	public void setActive(boolean active) {
		this.active = active;
	}
	

	
}
